package com.linko.intelligent.remote.pojo.po;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class DeviceInfo {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", position = 0)
    @TableId
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 1)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id", position = 2)
    private Long cateId;

    /**
     * 配置数据
     */
    @ApiModelProperty(value = "配置数据", position = 3)
    private String jsonData;

    /**
     * sn
     */
    @ApiModelProperty(value = "sn", position = 4)
    private String sn;

    /**
     * 设备名
     */
    @ApiModelProperty(value = "设备名", position = 5)
    private String name;

    /**
     * 生产厂家
     */
    @ApiModelProperty(value = "生产厂家", position = 6)
    private String factory;

    /**
     * 品牌
     */
    @ApiModelProperty(value = "品牌", position = 7)
    private String brand;

    /**
     * 型号
     */
    @ApiModelProperty(value = "型号", position = 8)
    private String model;

    /**
     * 生产日期
     */
    @ApiModelProperty(value = "生产日期", position = 9)
    private String mfDate;

    /**
     * 启用日期
     */
    @ApiModelProperty(value = "启用日期", position = 10)
    private String cxDate;

    /**
     * 尺寸
     */
    @ApiModelProperty(value = "尺寸", position = 11)
    private String size;

    /**
     * 重量
     */
    @ApiModelProperty(value = "重量", position = 12)
    private Double weight;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格", position = 13)
    private Double price;

    /**
     * 净值
     */
    @ApiModelProperty(value = "净值", position = 14)
    private Double netWorth;

    /**
     * 状态 0在用  1停用  2闲置
     */
    @ApiModelProperty(value = "状态 0在用  1停用  2闲置", position = 15)
    private Long status;

    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称", position = 16)
    private String projectName;

    /**
     * 项目code
     */
    @ApiModelProperty(value = "项目code", position = 17)
    private String projectCode;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id", position = 18)
    private String projectId;

    /**
     * 所属区域名称
     */
    @ApiModelProperty(value = "所属区域名称", position = 19)
    private String regionName;


    @ApiModelProperty(value = "分类名称", position = 11)
    @TableField(exist = false)
    private String cateName;


    @ApiModelProperty(value = "在线状态 0离线 1在线", position = 20)
    private String onlineStatus;

    @TableField(exist = false)
    private Integer onlineNum;

    @TableField(exist = false)
    private Integer iotNum;

    @ApiModelProperty(value = "设备类型 1自有 2协作 3租赁", position = 23)
    private String type;

    @ApiModelProperty(value = "1车2船3加油4油罐5拌合站用料6拌合站生产7拌合站运输8地磅", position = 23)
    private Integer deviceType;

    private String lat;
    private String lng;
    private String category;//1基础设备 2iot设备
    private String deviceNo;//iot设备的设备管理编号


    @TableField(exist = false)
    private String iotFlag;//1车2船3加油4油罐5拌合站用料6拌合站生产7拌合站运输8地磅
    @TableField(exist = false)
    private Long offline;
    @TableField(exist = false)
    private List<BaseIotDevice> bindList;
}
